<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <link rel="icon" href="/favicon.ico">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>萌宠系</title>
</head>

<body>
  <div id="app"></div>

  <script>
    ((designWidth) => {
      const body = document.documentElement
      const refershRem = () => {
        const clientWidth = body.clientWidth
        if (clientWidth >= designWidth) {
          body.style.fontSize = '100px'
        } else {
          body.style.fontSize = clientWidth / designWidth * 100 + 'px'
        }
      }
      document.addEventListener('DOMContentLoaded', refershRem)
    })(1080)
  </script>
  <script type="module" src="/src/main.ts"></script>
</body>

</html>